<?php

class Application_Form_HargasewaForm extends Zend_Form
{

    public function init()
    {   
        $id = new Zend_Form_Element_Hidden('id_harga_sewa');
        
        $daya_kva = new Zend_Form_Element_Text('daya_kva');
        $daya_kva->setLabel('Daya Genset')->addValidator('Digits');
        
        $harga_harian = new Zend_Form_Element_Text('harian');
        $harga_harian->setLabel('Daily Price')->addValidator('Digits');
        
        $harga_mingguan = new Zend_Form_Element_Text('mingguan');
        $harga_mingguan->setLabel('Weekly Price')->addValidator('Digits');
        
        $harga_bulanan = new Zend_Form_Element_Text('bulanan');
        $harga_bulanan->setLabel('Monthly Price')->addValidator('Digits');
        
        $harga_harian_bbm = new Zend_Form_Element_Text('harian_bbm');
        $harga_harian_bbm->setLabel('Daily Price with Fuel')->addValidator('Digits');
        
        $harga_mingguan_bbm = new Zend_Form_Element_Text('mingguan_bbm');
        $harga_mingguan_bbm->setLabel('Weekly Price with Fuel')->addValidator('Digits');
        
        $harga_bulanan_bbm = new Zend_Form_Element_Text('bulanan_bbm');
        $harga_bulanan_bbm->setLabel('Monthly Price with Fuel')->addValidator('Digits');
        
        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setLabel('Add Price');
        
        $batal = new Zend_Form_Element_Button('batal');
        $batal->setLabel('Cancel');
        
        $this->addElements(array($daya_kva, $harga_harian, $harga_mingguan, $harga_bulanan, $harga_harian_bbm, $harga_mingguan_bbm, $harga_bulanan_bbm, $submit, $batal, $id));
    }


}

